package service.impl;

import dao.PermissionDao1;
import entity.Permission;
import entity.User;
import org.springframework.stereotype.Service;
import service.PermissionService;

import javax.annotation.Resource;
import java.util.List;
@Service("permissionService")
public class Permissionimpl implements PermissionService {

    @Resource(name="permissionDao1")
    private PermissionDao1 permissionDao;


    @Override
    public List<Permission> icon(User user) {
        return permissionDao.icon(user);
    }

    @Override
    public List<Permission> caidan(User user) {
        return permissionDao.caidan(user);
    }

    @Override
    public List<Permission> zi(User user) {
        return permissionDao.zi(user);
    }
}
